<!DOCTYPE html>
<html>

{include file='public/header'}
<style>
    .layui-table-view{
        margin: 0;
    }
    .layui-row .layui-inline{margin-bottom: 10px;}
</style>
<body>

    <table id="launchDetail" lay-filter="launchDetail"></table>
    <script>
        let id = GetQueryString('id')
        let name = GetQueryString('name')
        let params = {
            elem: '#launchDetail'
            , url: `/admin/video/statisticsDetail?id=${id}&name=${name}` //数据接口
            , id: 'launchDetail'
            , page: true
            , limit: 20
            , cols: [[ //表头
                { field: 'video_name', width: 240, title: '短剧名称', align:'center'}
                , { field: 'name', width: 120, title: '剧集', align:'center'}
                , {title: '是否付费', width: 100, align:'center', templet: function (d) {
                        return d.is_pay == 1 ? '是' : '否'
                    }
                }
                , { field: 'pay_amount', title: '付费K币', align:'center'}
                , { field: 'today_consume', title: '今日消耗K币', align:'center'}
                , { field: 'today_watch_user_num', title: '今日观看人数', align:'center'}
                , { field: 'total_consume', title: '累计消耗K币', align:'center'}
                , { field: 'watch_user_num', title: '累计观看人数', align:'center'}
            ]]
        }
        tableList(params)

    </script>
</body>

</html>